import request from '@/utils/request'

// 查询科室列表
export function listBsDepartment(query) {
  return request({
    url: '/dept/bsDepartment/list',
    method: 'get',
    params: query
  })
}

// 查询科室详细
export function getBsDepartment(id) {
  return request({
    url: '/dept/bsDepartment/' + id,
    method: 'get'
  })
}

// 新增科室
export function addBsDepartment(data) {
  return request({
    url: '/dept/bsDepartment',
    method: 'post',
    data: data
  })
}

// 修改科室
export function updateBsDepartment(data) {
  return request({
    url: '/dept/bsDepartment',
    method: 'put',
    data: data
  })
}

// 删除科室
export function delBsDepartment(id) {
  return request({
    url: '/dept/bsDepartment/' + id,
    method: 'delete'
  })
}

// 查询试验类型树
export function tree(data) {
  return request({
    url: '/dept/bsDepartment/tree',
    method: 'get',
    params: data
  })
}
